package com.skywo.demo1.common.exception

import com.skywo.demo1.common.result.ResultCode

class BusinessException(val code: Int? = ResultCode.FAIL.code, message: String? = ResultCode.FAIL.message): RuntimeException(message) {

    constructor(resultCode: ResultCode): this(resultCode.code, resultCode.message)

    constructor(message: String?): this(null, message)

}